package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallAdvertising;

import java.util.*;
public class MallAdvertisingExample extends SgExample<MallAdvertisingExample.Criteria> {
    public static final Class<MallAdvertising> beanClass = MallAdvertising.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn imgUrl;
    public static EntityColumn itemId;
    public static EntityColumn itemCode;
    public static EntityColumn weight;
    public static EntityColumn remark;
    public static EntityColumn title;
    public static EntityColumn advertId;
    public static EntityColumn cid;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        imgUrl = listMap.get("imgUrl");
        itemId = listMap.get("itemId");
        itemCode = listMap.get("itemCode");
        weight = listMap.get("weight");
        remark = listMap.get("remark");
        title = listMap.get("title");
        advertId = listMap.get("advertId");
        cid = listMap.get("cid");
        }

    public MallAdvertisingExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallAdvertisingExample.Criteria createCriteriaInternal() {
        return new MallAdvertisingExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallAdvertisingExample.Criteria andImgUrlIsNull() {
            return isNull(imgUrl);
        }

        public MallAdvertisingExample.Criteria andImgUrlIsNotNull() {
            return isNotNull(imgUrl);
        }

        public MallAdvertisingExample.Criteria andImgUrlEqualTo(String value) {
            return equalTo(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlNotEqualTo(String value) {
            return notEqualTo(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlGreaterThan(String value) {
            return greaterThan(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlLessThan(String value) {
            return lessThan(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlLike(String value) {
            return like(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlNotLike(String value) {
            return notLike(imgUrl, value);
        }

        public MallAdvertisingExample.Criteria andImgUrlIn(List<String> values) {
            return in(imgUrl, values);
        }

        public MallAdvertisingExample.Criteria andImgUrlNotIn(List<String> values) {
            return notIn(imgUrl, values);
        }

        public MallAdvertisingExample.Criteria andImgUrlBetween(String value1, String value2) {
            return between(imgUrl, value1, value2);
        }

        public MallAdvertisingExample.Criteria andImgUrlNotBetween(String value1, String value2) {
            return notBetween(imgUrl, value1, value2);
        }
        public MallAdvertisingExample.Criteria andItemIdIsNull() {
            return isNull(itemId);
        }

        public MallAdvertisingExample.Criteria andItemIdIsNotNull() {
            return isNotNull(itemId);
        }

        public MallAdvertisingExample.Criteria andItemIdEqualTo(Long value) {
            return equalTo(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdNotEqualTo(Long value) {
            return notEqualTo(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdGreaterThan(Long value) {
            return greaterThan(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdLessThan(Long value) {
            return lessThan(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(itemId, value);
        }

        public MallAdvertisingExample.Criteria andItemIdIn(List<Long> values) {
            return in(itemId, values);
        }

        public MallAdvertisingExample.Criteria andItemIdNotIn(List<Long> values) {
            return notIn(itemId, values);
        }

        public MallAdvertisingExample.Criteria andItemIdBetween(Long value1, Long value2) {
            return between(itemId, value1, value2);
        }

        public MallAdvertisingExample.Criteria andItemIdNotBetween(Long value1, Long value2) {
            return notBetween(itemId, value1, value2);
        }
        public MallAdvertisingExample.Criteria andItemCodeIsNull() {
            return isNull(itemCode);
        }

        public MallAdvertisingExample.Criteria andItemCodeIsNotNull() {
            return isNotNull(itemCode);
        }

        public MallAdvertisingExample.Criteria andItemCodeEqualTo(String value) {
            return equalTo(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeNotEqualTo(String value) {
            return notEqualTo(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeGreaterThan(String value) {
            return greaterThan(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeLessThan(String value) {
            return lessThan(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeLike(String value) {
            return like(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeNotLike(String value) {
            return notLike(itemCode, value);
        }

        public MallAdvertisingExample.Criteria andItemCodeIn(List<String> values) {
            return in(itemCode, values);
        }

        public MallAdvertisingExample.Criteria andItemCodeNotIn(List<String> values) {
            return notIn(itemCode, values);
        }

        public MallAdvertisingExample.Criteria andItemCodeBetween(String value1, String value2) {
            return between(itemCode, value1, value2);
        }

        public MallAdvertisingExample.Criteria andItemCodeNotBetween(String value1, String value2) {
            return notBetween(itemCode, value1, value2);
        }
        public MallAdvertisingExample.Criteria andWeightIsNull() {
            return isNull(weight);
        }

        public MallAdvertisingExample.Criteria andWeightIsNotNull() {
            return isNotNull(weight);
        }

        public MallAdvertisingExample.Criteria andWeightEqualTo(Integer value) {
            return equalTo(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightNotEqualTo(Integer value) {
            return notEqualTo(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightGreaterThan(Integer value) {
            return greaterThan(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightLessThan(Integer value) {
            return lessThan(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(weight, value);
        }

        public MallAdvertisingExample.Criteria andWeightIn(List<Integer> values) {
            return in(weight, values);
        }

        public MallAdvertisingExample.Criteria andWeightNotIn(List<Integer> values) {
            return notIn(weight, values);
        }

        public MallAdvertisingExample.Criteria andWeightBetween(Integer value1, Integer value2) {
            return between(weight, value1, value2);
        }

        public MallAdvertisingExample.Criteria andWeightNotBetween(Integer value1, Integer value2) {
            return notBetween(weight, value1, value2);
        }
        public MallAdvertisingExample.Criteria andRemarkIsNull() {
            return isNull(remark);
        }

        public MallAdvertisingExample.Criteria andRemarkIsNotNull() {
            return isNotNull(remark);
        }

        public MallAdvertisingExample.Criteria andRemarkEqualTo(String value) {
            return equalTo(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkNotEqualTo(String value) {
            return notEqualTo(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkGreaterThan(String value) {
            return greaterThan(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkLessThan(String value) {
            return lessThan(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkLike(String value) {
            return like(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkNotLike(String value) {
            return notLike(remark, value);
        }

        public MallAdvertisingExample.Criteria andRemarkIn(List<String> values) {
            return in(remark, values);
        }

        public MallAdvertisingExample.Criteria andRemarkNotIn(List<String> values) {
            return notIn(remark, values);
        }

        public MallAdvertisingExample.Criteria andRemarkBetween(String value1, String value2) {
            return between(remark, value1, value2);
        }

        public MallAdvertisingExample.Criteria andRemarkNotBetween(String value1, String value2) {
            return notBetween(remark, value1, value2);
        }
        public MallAdvertisingExample.Criteria andTitleIsNull() {
            return isNull(title);
        }

        public MallAdvertisingExample.Criteria andTitleIsNotNull() {
            return isNotNull(title);
        }

        public MallAdvertisingExample.Criteria andTitleEqualTo(String value) {
            return equalTo(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleNotEqualTo(String value) {
            return notEqualTo(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleGreaterThan(String value) {
            return greaterThan(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleLessThan(String value) {
            return lessThan(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleLike(String value) {
            return like(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleNotLike(String value) {
            return notLike(title, value);
        }

        public MallAdvertisingExample.Criteria andTitleIn(List<String> values) {
            return in(title, values);
        }

        public MallAdvertisingExample.Criteria andTitleNotIn(List<String> values) {
            return notIn(title, values);
        }

        public MallAdvertisingExample.Criteria andTitleBetween(String value1, String value2) {
            return between(title, value1, value2);
        }

        public MallAdvertisingExample.Criteria andTitleNotBetween(String value1, String value2) {
            return notBetween(title, value1, value2);
        }
        public MallAdvertisingExample.Criteria andAdvertIdIsNull() {
            return isNull(advertId);
        }

        public MallAdvertisingExample.Criteria andAdvertIdIsNotNull() {
            return isNotNull(advertId);
        }

        public MallAdvertisingExample.Criteria andAdvertIdEqualTo(Long value) {
            return equalTo(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdNotEqualTo(Long value) {
            return notEqualTo(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdGreaterThan(Long value) {
            return greaterThan(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdLessThan(Long value) {
            return lessThan(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(advertId, value);
        }

        public MallAdvertisingExample.Criteria andAdvertIdIn(List<Long> values) {
            return in(advertId, values);
        }

        public MallAdvertisingExample.Criteria andAdvertIdNotIn(List<Long> values) {
            return notIn(advertId, values);
        }

        public MallAdvertisingExample.Criteria andAdvertIdBetween(Long value1, Long value2) {
            return between(advertId, value1, value2);
        }

        public MallAdvertisingExample.Criteria andAdvertIdNotBetween(Long value1, Long value2) {
            return notBetween(advertId, value1, value2);
        }
        public MallAdvertisingExample.Criteria andCidIsNull() {
            return isNull(cid);
        }

        public MallAdvertisingExample.Criteria andCidIsNotNull() {
            return isNotNull(cid);
        }

        public MallAdvertisingExample.Criteria andCidEqualTo(Long value) {
            return equalTo(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidNotEqualTo(Long value) {
            return notEqualTo(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidGreaterThan(Long value) {
            return greaterThan(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidLessThan(Long value) {
            return lessThan(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(cid, value);
        }

        public MallAdvertisingExample.Criteria andCidIn(List<Long> values) {
            return in(cid, values);
        }

        public MallAdvertisingExample.Criteria andCidNotIn(List<Long> values) {
            return notIn(cid, values);
        }

        public MallAdvertisingExample.Criteria andCidBetween(Long value1, Long value2) {
            return between(cid, value1, value2);
        }

        public MallAdvertisingExample.Criteria andCidNotBetween(Long value1, Long value2) {
            return notBetween(cid, value1, value2);
        }
    }
}